﻿// =================================================================== 
// 项目说明
//====================================================================
// Wup。@Copy Right 2014
// 文件： UserViewHistory.cs
// 项目名称：买车网
// 创建时间：2016/3/23
// 负责人：Wup
// ===================================================================
using System;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ComponentModel;
namespace Weixin.Entity.ChinaTax
{
	/// <summary>
	///UserViewHistory数据实体
	/// </summary>
	[Serializable]
	[DataContract]
	public class UserViewHistoryEntity
	{
		#region 变量定义
		///<summary>
		///
		///</summary>
		private int _id;
		///<summary>
		///
		///</summary>
		private int _userId;
		///<summary>
		///
		///</summary>
		private int _objId;
		///<summary>
		///1资讯2咨询3课程4工作5专家
		///</summary>
		private int _objType;
		///<summary>
		///
		///</summary>
		private DateTime _createTime;
		///<summary>
		///
		///</summary>
		private string _iP = String.Empty;
		///<summary>
		///来源：1PC 2微信
		///</summary>
		private int _sourceId;
		///<summary>
		///操作：1浏览 2转发
		///</summary>
		private int _operateWay;
		#endregion
		
		#region 构造函数

		///<summary>
		///
		///</summary>
		public UserViewHistoryEntity()
		{
		}
		///<summary>
		///
		///</summary>
		public UserViewHistoryEntity
		(
			int id,
			int userId,
			int objId,
			int objType,
			DateTime createTime,
			string iP,
			int sourceId,
			int operateWay
		)
		{
			_id         = id;
			_userId     = userId;
			_objId      = objId;
			_objType    = objType;
			_createTime = createTime;
			_iP         = iP;
			_sourceId   = sourceId;
			_operateWay = operateWay;
			
		}
		#endregion
		
		#region 公共属性

		
		///<summary>
		///
		///</summary>
		[DataMember]
		public int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		///<summary>
		///
		///</summary>
		[DataMember]
		public int UserId
		{
			get {return _userId;}
			set {_userId = value;}
		}

		///<summary>
		///
		///</summary>
		[DataMember]
		public int ObjId
		{
			get {return _objId;}
			set {_objId = value;}
		}

		///<summary>
		///1资讯2咨询3课程4工作5专家
		///</summary>
		[DataMember]
		public int ObjType
		{
			get {return _objType;}
			set {_objType = value;}
		}

		///<summary>
		///
		///</summary>
		[DataMember]
		public DateTime CreateTime
		{
			get {return _createTime;}
			set {_createTime = value;}
		}

		///<summary>
		///
		///</summary>
		[DataMember]
		public string IP
		{
			get {return _iP;}
			set {_iP = value;}
		}

		///<summary>
		///来源：1PC 2微信
		///</summary>
		[DataMember]
		public int SourceId
		{
			get {return _sourceId;}
			set {_sourceId = value;}
		}

		///<summary>
		///操作：1浏览 2转发
		///</summary>
		[DataMember]
		public int OperateWay
		{
			get {return _operateWay;}
			set {_operateWay = value;}
		}
	
		#endregion
		
	}
}
